package cn.yunhe.java.convert;


import cn.yunhe.java.dto.AppDTO;
import cn.yunhe.java.entity.App;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @ClassName : AppCovert
 * @Author : qawine
 * @Date: 2021/3/24 19:47
 * @Description : App对象转换
 */
@Mapper
public interface AppCovert {
    AppCovert INSTANCE = Mappers.getMapper(AppCovert.class);

    AppDTO entity2dto(App entity);

    App dto2entity(AppDTO dto);

    List<AppDTO> listEntity2dto(List<App> app);
}